
class CollectArticleListEntity {
    CollectArticleListData? data;
    int? errorCode;
    String? errorMsg;

    CollectArticleListEntity({this.data, this.errorCode, this.errorMsg});

    CollectArticleListEntity.fromJson(Map<String, dynamic> json) {
        if(json["data"] is Map)
            this.data = json["data"] == null ? null : CollectArticleListData.fromJson(json["data"]);
        if(json["errorCode"] is int)
            this.errorCode = json["errorCode"];
        if(json["errorMsg"] is String)
            this.errorMsg = json["errorMsg"];
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        if(this.data != null)
            data["data"] = this.data?.toJson();
        data["errorCode"] = this.errorCode;
        data["errorMsg"] = this.errorMsg;
        return data;
    }
}

class CollectArticleListData {
    int? curPage;
    List<CollectArticleListDataDatas>? datas;
    int? offset;
    bool? over;
    int? pageCount;
    int? size;
    int? total;

    CollectArticleListData({this.curPage, this.datas, this.offset, this.over, this.pageCount, this.size, this.total});

    CollectArticleListData.fromJson(Map<String, dynamic> json) {
        if(json["curPage"] is int)
            this.curPage = json["curPage"];
        if(json["datas"] is List)
            this.datas = json["datas"]==null ? null : (json["datas"] as List).map((e)=>CollectArticleListDataDatas.fromJson(e)).toList();
        if(json["offset"] is int)
            this.offset = json["offset"];
        if(json["over"] is bool)
            this.over = json["over"];
        if(json["pageCount"] is int)
            this.pageCount = json["pageCount"];
        if(json["size"] is int)
            this.size = json["size"];
        if(json["total"] is int)
            this.total = json["total"];
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data["curPage"] = this.curPage;
        if(this.datas != null)
            data["datas"] = this.datas?.map((e)=>e.toJson()).toList();
        data["offset"] = this.offset;
        data["over"] = this.over;
        data["pageCount"] = this.pageCount;
        data["size"] = this.size;
        data["total"] = this.total;
        return data;
    }
}

class CollectArticleListDataDatas {
    String? author;
    int? chapterId;
    String? chapterName;
    int? courseId;
    String? desc;
    String? envelopePic;
    int? id;
    String? link;
    String? niceDate;
    String? origin;
    int? originId;
    int? publishTime;
    String? title;
    int? userId;
    int? visible;
    int? zan;

    CollectArticleListDataDatas({this.author, this.chapterId, this.chapterName, this.courseId, this.desc, this.envelopePic, this.id, this.link, this.niceDate, this.origin, this.originId, this.publishTime, this.title, this.userId, this.visible, this.zan});

    CollectArticleListDataDatas.fromJson(Map<String, dynamic> json) {
        if(json["author"] is String)
            this.author = json["author"];
        if(json["chapterId"] is int)
            this.chapterId = json["chapterId"];
        if(json["chapterName"] is String)
            this.chapterName = json["chapterName"];
        if(json["courseId"] is int)
            this.courseId = json["courseId"];
        if(json["desc"] is String)
            this.desc = json["desc"];
        if(json["envelopePic"] is String)
            this.envelopePic = json["envelopePic"];
        if(json["id"] is int)
            this.id = json["id"];
        if(json["link"] is String)
            this.link = json["link"];
        if(json["niceDate"] is String)
            this.niceDate = json["niceDate"];
        if(json["origin"] is String)
            this.origin = json["origin"];
        if(json["originId"] is int)
            this.originId = json["originId"];
        if(json["publishTime"] is int)
            this.publishTime = json["publishTime"];
        if(json["title"] is String)
            this.title = json["title"];
        if(json["userId"] is int)
            this.userId = json["userId"];
        if(json["visible"] is int)
            this.visible = json["visible"];
        if(json["zan"] is int)
            this.zan = json["zan"];
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data["author"] = this.author;
        data["chapterId"] = this.chapterId;
        data["chapterName"] = this.chapterName;
        data["courseId"] = this.courseId;
        data["desc"] = this.desc;
        data["envelopePic"] = this.envelopePic;
        data["id"] = this.id;
        data["link"] = this.link;
        data["niceDate"] = this.niceDate;
        data["origin"] = this.origin;
        data["originId"] = this.originId;
        data["publishTime"] = this.publishTime;
        data["title"] = this.title;
        data["userId"] = this.userId;
        data["visible"] = this.visible;
        data["zan"] = this.zan;
        return data;
    }
}